package com.topboya.officeuser.exception;

/**
 * @className ThrowAble
 * @Author xiaxin
 * @Date 2020/12/17 13:19
 * @Version 1.0
 **/
public class ThrowAble {
    public static RuntimeException sneakyThrow(Throwable t) {
        if (t == null) throw new NullPointerException("t");
        return ThrowAble.sneakyThrow0s(t);
    }

    private static RuntimeException sneakyThrow0s(Throwable t) {
        throw (RuntimeException) t;
    }
}
